Skip to content

feat: warm Roo models on CLI startup#11722

Merged
cte merged 1 commit intomainfrom
feat/cli-warm-roo-models
Feb 24, 2026
Merged

feat: warm Roo models on CLI startup#11722
cte merged 1 commit intomainfrom
feat/cli-warm-roo-models

Conversation

@cte
Copy link
Collaborator

@cte cte commented Feb 24, 2026

Summary

  • Adds a warmRooModels helper that listens for a singleRouterModelFetchResponse message from the extension host to pre-fetch model information when the Roo provider is active
  • Runs the warmup after host.activate() with a 10s timeout; failures are silently caught (logged only in debug mode) so they never block normal CLI operation
  • Imports the existing isRecord guard for safe runtime type narrowing of incoming messages

Test plan

  • Run CLI with --provider roo and verify models are available before the first prompt
  • Run CLI with --provider roo --debug and verify warmup success/failure is logged
  • Run CLI with a non-Roo provider and verify no warmup is attempted
  • Simulate a timeout (e.g. disconnect network) and verify the CLI still starts normally

🤖 Generated with Claude Code

Interactively review PR in Roo Code Cloud

When the CLI is configured with the Roo provider, proactively fetch
and warm the model list during activation so that model information
is available before the first prompt is sent. The warmup has a 10s
timeout and failures are logged only in debug mode so they never
block normal operation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Enhancement New feature or request labels Feb 24, 2026
@cte cte merged commit 29caab9 into main Feb 24, 2026
15 checks passed
@cte cte deleted the feat/cli-warm-roo-models branch February 24, 2026 07:13
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Feb 24, 2026
@roomote roomote bot mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant